﻿using System.Collections;
using UnityEngine;

public abstract class ZLoader : EventSub
{
    /// <summary>
    /// 请求信息
    /// </summary>
    public RequestInfo Request { get; protected set; }
    public WWW Www { get; protected set; }

    /// <summary>
    /// 是否正在加载
    /// </summary>
    public bool IsLoading { get; protected set; }

    /// <summary>
    /// 是否加载完成
    /// </summary>
    public bool IsLoaded { get; protected set; }

    protected float LastProgress { get; set; }
    public abstract float Progress { get; }

    public abstract IEnumerator Load();
    public abstract void Update();
    public abstract void Clear();
}